[XENCONSOLE] reference of tty->count in xencons_close() is racy.
authorkfraser@localhost.localdomain <kfraser@localhost.localdomain>
Mon, 10 Jul 2006 14:23:15 +0000 (15:23 +0100)
committerkfraser@localhost.localdomain <kfraser@localhost.localdomain>
Mon, 10 Jul 2006 14:23:15 +0000 (15:23 +0100)
commitfb79aef8d87b57e244808b225e3cbc7c387b25b1
tree09db297e272719aaf4410aa2ffc6a2da80501e96
parent1e4f24bfe2615cb7e2b926f3c0733dc18df54f6b
[XENCONSOLE] reference of tty->count in xencons_close() is racy.
It must be protected by tty_sem semaphore like con_close() in
drivers/char/vt.c. and prevent re-opening this tty.

Signed-off-by: Isaku Yamahata <yamahata@valinux.co.jp>
Signed-off-by: Keir Fraser <keir@xensource.com>
linux-2.6-xen-sparse/drivers/xen/console/console.c